﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QuizAppMvc2.Models.ResumoModels>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Finish
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Resumo</h2>

    <fieldset>
        <legend>Resumo</legend>
        
        <div class="display-label">total</div>
        <div class="display-field"><%: Model.total %></div>
        
        <div class="display-label">certas</div>
        <div class="display-field"><%: Model.respostacertas.Count %></div>

        <div class="display-label">erradas</div>
        <div class="display-field"><%: Model.respostaerradas.Count %></div>

         <div class="display-label">embranco</div>
        <div class="display-field"><%: Model.respostaembranco.Count %></div>

        <h2>
                 <div class="display-label">Procentagem </div>
        <div class="display-field"><%: (float) Model.respostacertas.Count  * 100 / (float) Model.total  %> %</div>
        </h2>

        <h2>
        Questoes Erradas
        </h2>
        <% foreach (int i in Model.respostaerradas)
           {             %>

           Questao <%: i %> <br />
        <% } %>

        
        
    </fieldset>
    <p>
        <%: Html.ActionLink("Edit", "Edit", new { /* id=Model.PrimaryKey */ }) %> |
        <%: Html.ActionLink("Back to List", "Create") %>
    </p>

</asp:Content>

